#!/usr/bin/python3.8.9
# -*- coding: utf-8 -*-

# @Author  : Tina Yu
# @Time    : 2021-11-10 21:08
from decimal import Decimal, ROUND_HALF_UP


def to_demical(num):
    """
    处理浮点数，保留6位小数
    :return:
    """
    return Decimal(f'{num}').quantize(Decimal('0.000000'), rounding=ROUND_HALF_UP)
